package org.springframework.test.zhaohui.interceptor;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import org.springframework.test.zhaohui.annotation.ParamCheck;

import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.util.Arrays;

/**
 * ParamCheckIntercepter
 *
 * @author zhaohui
 */
@Aspect
@Component
public class ParamCheckInterceptor {

	@Around(value = "@annotation(paramCheck)")
	public Object doCheck(ProceedingJoinPoint joinPoint, ParamCheck paramCheck) throws Throwable {
		return joinPoint.proceed();
	}

}
